﻿Imports System.Data.Entity
Imports Dominio

Public Class BaseDeDatosVideo
    Inherits DbContext

    Public Sub New()

    End Sub

    Public Sub New(nameOrConnection As String)
        MyBase.New(nameOrConnection)
    End Sub

    Private _socios As DbSet(Of Socio)
    Public Property Socios() As DbSet(Of Socio)
        Get
            Return _socios
        End Get
        Set(ByVal value As DbSet(Of Socio))
            _socios = value
        End Set
    End Property

    Private _peliculas As DbSet(Of Pelicula)
    Public Property Peliculas() As DbSet(Of Pelicula)
        Get
            Return _peliculas
        End Get
        Set(ByVal value As DbSet(Of Pelicula))
            _peliculas = value
        End Set
    End Property

    Private _alquileres As DbSet(Of Alquiler)
    Public Property Alquileres() As DbSet(Of Alquiler)
        Get
            Return _alquileres
        End Get
        Set(ByVal value As DbSet(Of Alquiler))
            _alquileres = value
        End Set
    End Property

    Private _generos As DbSet(Of Genero)
    Public Property Generos() As DbSet(Of Genero)
        Get
            Return _generos
        End Get
        Set(ByVal value As DbSet(Of Genero))
            _generos = value
        End Set
    End Property

End Class
